Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@uiw/react-empty
Advanced tools
空状态时的展示占位图。新组件 v4.11.0+
支持。
import { Empty } from 'uiw';
// or
import Empty from '@uiw/react-empty';
import React from 'react';
import { Empty, Button } from 'uiw';
export default function Demo() {
return <Empty />
}
通过自定义属性定制个性化展示。
import React from 'react';
import { Empty, Button, Icon } from 'uiw';
export default function Demo() {
return (
<Empty
description={
<span>
Customize <a href="#">Description</a>
</span>
}
icon={<Icon type="shopping-cart" style={{ fontSize: '39px' }} />}
>
<Button type="primary">新增数据</Button>
</Empty>
)
}
import React from 'react';
import { Empty } from 'uiw';
export default function Demo() {
return <Empty description={false} />
}
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
description | 自定义描述内容 | ReactNode | 暂无数据 |
icon | 可以替换内置图标 | ReactNode | - |
size | 内置 svg 图标:尺寸 | number | string | - |
iconProps | 内置 svg 图标:属性设置 | React.SVGProps<SVGSVGElement> | - |
FAQs
Empty component
The npm package @uiw/react-empty receives a total of 106 weekly downloads. As such, @uiw/react-empty popularity was classified as not popular.
We found that @uiw/react-empty demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.